package cn.online.model;

import java.util.Date;
import javax.persistence.*;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@Entity
@Table(name = "reply")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Reply implements java.io.Serializable {



	private Integer rid;
	private String rcontent;
	private String rperson;
	private Date rdate;
	private Integer rproblem;
	private Integer rpid;


	public Reply() {
	}


	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "r_id", unique = true, nullable = false)
	public Integer getRid() {
		return this.rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	@Column(name = "r_content", nullable = false)
	public String getRcontent() {
		return this.rcontent;
	}

	public void setRcontent(String rcontent) {
		this.rcontent = rcontent;
	}

	@Column(name = "r_person", nullable = false, length = 10)
	public String getRperson() {
		return this.rperson;
	}

	public void setRperson(String rperson) {
		this.rperson = rperson;
	}

	@Column(name = "r_date", nullable = false, updatable = false)
	public Date getRdate() {
		return this.rdate;
	}

	public void setRdate(Date rdate) {
		this.rdate = rdate;
	}

	@Column(name = "r_problem", nullable = false)
	public Integer getRproblem() {
		return this.rproblem;
	}

	public void setRproblem(Integer rproblem) {
		this.rproblem = rproblem;
	}

	@Column(name = "r_pid")
	public Integer getRpid() {
		return this.rpid;
	}

	public void setRpid(Integer rpid) {
		this.rpid = rpid;
	}

}